﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<GonguklubburinnMVC.Models.MountainE>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>
<asp:Content ID ="Content3" ContentPlaceHolderID="MenuContent" runat="server">

    <div id="menucontainer">
           
                <ul id="menu">              
                    <li><%: Html.ActionLink("Home", "Index", "Home")%></li>
                    <li><%: Html.ActionLink("About", "About", "Home")%></li>
                    <li><%: Html.ActionLink("Create New", "Create")%></li>

                </ul>

             </div>
             </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">



    <h2>Index</h2>


<div id ="ImgContainer">
   
  
    <%  foreach (var item in Model) { %>
 <div class="Mountains"> 

<%: Html.ActionLink(item.Name, "Details" , new {id = item.ID})%><br />   
<div class ="imgMountains">
 <img src="../../Content/Images/<%:item.ImgName %>"/>  
 </div>
 </div> 

   
        <% } %>
 
  

     </div>
   

</asp:Content>



